import {defineStore} from "pinia";
import UploadFile from "@/appComponents/Upload/UploadFile.vue";
export type UploadFileType = InstanceType<typeof UploadFile>

export const useUploadFile = defineStore('uploadFile', {
  state() {
    return {
      uploadInstance: null as UploadFileType,
    }
  },
  getters: {
    getUploadInstance(): UploadFileType {
      return this.uploadInstance
    }
  },
  actions: {
    setUploadInstance(instance: UploadFileType) {
      this.uploadInstance = instance
    },
  }
})
